import mysql from 'mysql2'

const pool = mysql.createPool({
    host: 'localhost',
    port: 3306,
    user: 'root',
    password: 'root',
    database: 'toutiao',
    connectionLimit: 10,
    waitForConnections: true
})

export default pool.promise()